package com.example.travelservlet.entertainment.service;

import com.example.travelservlet.entity.City;
import com.example.travelservlet.entity.Entertainment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import java.util.List;

/**
 * @author hxy
 * @date 2022/11/8 11:59
 */

public interface EntertainmentService {

    Page findEntertainmentsByCityIdAndEntertainmentIds(City city, List<String> entertainmentIds, Pageable pageable, String type);

    List<Entertainment> findEntertainmentsByCityIdAndEntertainmentIds(City city, List<String> entertainmentIds,String type);
    Page findEntertainmentsByEntertainmentIds(List<String> entertainmentIds, Pageable pageable);

    Page findAll(City city, Pageable pageable,String type);
    List<Entertainment> findAll(City city,String type);

    Page findResearch(String cityId,Pageable pageable,String str);

    Entertainment findEntertainmentByEntertainmentId(String entertainmentId);

    List<Entertainment> findEntertainmentsByCityIdAndType(String cityId,String type);

    Entertainment saveEntertainment(Entertainment entertainment);

    void deleteEntertainment(Entertainment entertainment);

    List<Entertainment> findSceneries();
    List<Entertainment> findSceneries1(int page,int size);

    List<Entertainment> findFoods();
    List<Entertainment> findFoods1(int page,int size);
    List<Entertainment> findSceneriesByKeyWord(String key, Integer page, Integer size);

    List<Entertainment> findAlls();

    List<Entertainment> findSceneriesByKeyWord(String key);

    Entertainment updateEntertainment(Entertainment entertainment);

    List<Entertainment> findFoodsByKeyWord(String key);

    List<Entertainment> findFoodsByKeyWord1(String key, Integer page, Integer size);

    void deleteById(String entertainmentId);
}
